package com.example.hospitalsystem.pojo.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 患者挂号关联表
 * </p>
 *
 * @author author
 * @since 2024-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("registration")
public class Registration implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "registration_id")
    private Integer registrationId;

    /**
     * 患者id
     */
    @TableField("patient_id")
    private Integer patientId;


    /**
     * 医生名称
     */
    @TableField("doctor_name")
    private String doctorName;


    /**
     * 患者姓名
     */
    @TableField("patient_name")
    private String patientName;

    /**
     * 性别
     */
    @TableField("gender")
    private String gender;

    /**
     * 出生日期
     */
    @TableField("born_date")
    private String bornDate;

    /**
     * 患者年龄
     */
    @TableField("age")
    private Integer age;

    /**
     * 患者联系方式
     */
    @TableField("contact")
    private String contact;

    /**
     * 患者家庭地址
     */
    @TableField("address")
    private String address;

    /**
     * 患者身份(1:学生，2:教职工，3:其他人员)
     */
    @TableField("identity")
    private Integer identity;

    /**
     * 科室名
     */
    @TableField("department_name")
    private String departmentName;

    /**
     * 科室类型
     */
    @TableField("department_kind")
    private String departmentKind;

    /**
     * 挂号费用
     */
    @TableField("registration_fee")
    private BigDecimal registrationFee;

    /**
     * 病情描述
     */
    @TableField("disease_description")
    private String diseaseDescription;

    /**
     * 接诊状态(0：未接诊，1：已接诊)
     */
    @TableField("reception_status")
    private Integer receptionStatus;

    /**
     * 挂号时间
     */
    @TableField("registration_time")
    private LocalDate registrationTime;


}
